#ifndef _LIB_XHR
#define _LIB_XHR

function xhr( details, callee ) {
	details.method = details.method || "get",
		details.headers = details.headers || { 'Content-Type': 'application/x-www-form-urlencoded' },
		details.onload = function( xhr ) {
			this.success.call( callee ? callee : this, xhr.responseText, xhr );
		};
	return GM_xmlhttpRequest( details );
}
#endif